package com.kfm.pm.student;

public class A extends Student implements Driver, Singer{

    @Override
    public void drive() {
        System.out.println("我可以开车");
    }

    @Override
    public void sing() {
        System.out.println("我可以唱歌");
    }
}


class Test {

    public static void main(String[] args) {
        A a = new A();
        Student student = a;
        student.study();
        Singer singer = a;
        singer.sing();
        Driver driver = a;
        driver.drive();
    }
}
